{php}
    switch($tab){
        case 'score':
            $scoreClass="active";
            break;
        case 'avatar':
            $avatarClass="active";
            break;
        case 'userTag':
            $userTagClass="active";
            break;
        case 'field':
            $fieldClass="active";
            break;
        case 'fieldRegister':
            $fieldRegisterClass="active";
            break;
        default:
            break;
    }
{/php}

<ul class="nav nav-pills nav-primary">
    <li class="{notempty name="scoreClass"}{$scoreClass}{/notempty}">
        <a href="{:url('Role/configScore',array('id'=>$this_role['id']))}">
            {:lang("_USER_INTEGRAL_CONFIGURATION_")}
        </a>
    </li>
    <li class="{notempty name="avatarClass"}{$avatarClass}{/notempty}">
        <a href="{:url('Role/configAvatar',array('id'=>$this_role['id']))}">
            {:lang("_USER_DEFAULT_AVATAR_CONFIGURATION_")}
        </a>
    </li>
    <li class="{notempty name="$userTagClass"}{$userTagClass}{/notempty}">
        <a href="{:url('Role/configUserTag',array('id'=>$this_role['id']))}">
            {:lang("_CAN_HAVE_A_LABEL_CONFIGURATION_")}
        </a>
    </li>
    <li class="{notempty name="fieldClass"}{$fieldClass}{/notempty}">
        <a href="{:url('Role/configField',array('id'=>$this_role['id']))}">
            {:lang("_EXTENDED_DATA_CONFIGURATION_")}
        </a>
    </li>
</ul>